package test;

public class TestCourseSystem {
    public static void main(String[] args) {
        // 1. 创建课程对象
        Course javaCourse = new Course("C001", "Java程序设计", "实验楼302", "周一3-4节", "T001");
        Course mathCourse = new Course("C002", "高等数学", "教学楼205", "周三1-2节", "T002");

        // 2. 创建教师对象并开课
        Teacher teacherZhang = new Teacher("T001", "张三", "男");
        Teacher teacherLi = new Teacher("T002", "李四", "女");
        teacherZhang.openCourse(javaCourse);
        teacherLi.openCourse(mathCourse);

        // 3. 创建学生对象并选课、退课、打印课表
        Student studentWang = new Student("S001", "王五", "男");
        Student studentZhao = new Student("S002", "赵六", "女");

        studentWang.selectCourse(javaCourse);
        studentZhao.selectCourse(mathCourse);

        studentWang.printSchedule();
        studentZhao.printSchedule();

        studentWang.dropCourse();
        studentWang.printSchedule();
    }
}

